package com.example.demo.model;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * \* Created with IntelliJ IDEA.
 * \* User: Administrator
 * \* Date: 2022/7/10
 * \* Time: 17:32
 * \* To change this template use File | Settings | File Templates.
 * \* Description:
 * \
 */

@Data
@ConfigurationProperties(prefix = "student2")
@Component
public class Student {
    private int id;
    private String name;
    private int age;
}
